import {contextBridge, ipcRenderer, shell} from "electron";

contextBridge.exposeInMainWorld('shell', {
    openUrl: (url) => shell.openExternal(url)
})
contextBridge.exposeInMainWorld('ipcRendererApi', {
    send: (channel) => ipcRenderer.send(channel),
    on: (channel, listener) => ipcRenderer.on(channel, listener)
})
